﻿<div class="span10">
	<h1>Cadastrar Responsável</h1>
	<?php echo Flash::render(); ?>
	<?php echo Form::open('responsavel/cadastrar', array('class' => 'well')); ?>
	<label>Nome: </label>
	<input type="text" name="nome" class="span3" placeholder="Nome">
	<script>
		$(document).ready(function(){
			$('.telefone').mask('(99) 9999-9999');
		});
	</script>
	<label>Telefone: </label>
	<input type="text" name="telefone" class="span3 telefone" placeholder="Telefone (xx) xxxx-xxxx">
	<label>Email: </label>
	<input type="text" name="email" class="span3" placeholder="Email">
	<label>Setor: </label>
	<input type="text" name="setor" class="span3" placeholder="Setor"><br>
	<button type="submit" name="cadastrar" class="btn">Cadastrar</button>
	<?php echo Form::close(); ?>
	<?php
		$view = new View('responsavel/lista');
		$view->bind('responsaveis', $responsaveis);
		echo $view;
	?>
</div>